package com.qf.api.product.feign;

import com.qf.api.config.FeignConfig;
import com.qf.api.product.fallback.ProductFallbackFactory;
import com.qf.common.core.entity.product.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author GaoQiangLiang
 * @date 2025-06-14 15:49
 */
@FeignClient(value = "osm-product", configuration = FeignConfig.class, fallbackFactory = ProductFallbackFactory.class)
public interface ProductFeignService {

    @GetMapping("/Goods/getProductInfo")
    public List<Product>  getProductInfo(@RequestParam("productIds") List<Integer> productIds);
}
